import 'package:flutter/material.dart';

//import 'package:dio/dio.dart';
//import 'dart:async';
//import 'package:flutter/cupertino.dart';
import 'dart:convert'  ;
class JsonUtil   {
 static Map<String,dynamic> json2map(String jsonStr){
//    Map<String, dynamic> map = JSON.jsonDecode(json);
    Map<String, dynamic> map = json.decode(jsonStr);
    return map;
  }
  static String  map2json(Map<String,dynamic> map){
   return json.encode(map);

  }
}